package com.jt.controller;

import com.jt.pojo.User;
import com.jt.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;

@Controller
public class UserController {

    @Autowired
    @Qualifier("userServiceA")
    private UserService userService;

    @Autowired
    private User user;

    public void addUser(){
//        User user = new User();
//        user.setId(101);
//        user.setUsername("瑶瑶");
        userService.addUser(user);
    }
}
